package com.jushu.storbox.service;

import java.util.List;

import android.content.Context;

import com.jushu.storbox.database.DAOFactory;
import com.huawei.sharedrive.sdk.android.model.response.ADUser;
public class MailListService implements IMailListService
{
	@Override
	public Context getContext() {
		return null;
	}
	@Override
	public void setContext(Context context) {           
		
	}
	@Override
	public List<ADUser> selectMailList(String keyText) {
		return DAOFactory.instance(getContext()).getEnterpriseAddressDao().queryMailList(keyText);
	}
	@Override
	public void dbInsertMailList(List<ADUser> mailList) throws Exception {
		DAOFactory.instance(getContext()).getEnterpriseAddressDao().dbInsertMailList(mailList);
	}	
}
